package reflect;

public class Student {
    private String name = "张三";
    private int age = 18;
    private char gender ='男';
    public Student(){

    }
    public  Student(String name){
        this.name = name;

    }
    public  Student(String name, int age,char gender){
        this.name = name;
        this.age = age;
        this.gender = gender;

    }

    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                '}';
    }
}
